/*
 * MySqlRpc.h
 *
 *  Created on: Sep 23, 2015
 *      Author: rpi
 */

#ifndef MYSQLRPC_H_
#define MYSQLRPC_H_

#include "MysqlInterface.h"

class MySqlRpc
{
public:
	MySqlRpc();
	virtual ~MySqlRpc();

	Json::Rpc::RpcMethod<MySqlRpc>::Method getRpcMethod(std::string func);

	bool getDeviceList(const Json::Value& root, Json::Value& response);
	bool getInstanceList(const Json::Value& root, Json::Value& response);
private:
	dba::MysqlInterface *poMysqlInterface;
	std::map<std::string, Json::Rpc::RpcMethod<MySqlRpc>::Method> _mapMethods;
};

#endif /* MYSQLRPC_H_ */
